package com.dianping.cat.core.dal;

import java.util.Date;
import java.util.List;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class HourlyReportDao extends AbstractDao {
/* 11 */   public HourlyReport createLocal() { return new HourlyReport(); }





/* 17 */   public int deleteByPK(HourlyReport proto) throws DalException { return getQueryEngine().deleteSingle(HourlyReportEntity.DELETE_BY_PK, proto); }




  public List<HourlyReport> findAllByDomainNamePeriod(Date period, String domain, String name, Readset<HourlyReport> readset) throws DalException {
/* 23 */     HourlyReport proto = new HourlyReport();

/* 25 */     proto.setPeriod(period);
/* 26 */     proto.setDomain(domain);
/* 27 */     proto.setName(name);

/* 29 */     return getQueryEngine().queryMultiple(HourlyReportEntity.FIND_ALL_BY_DOMAIN_NAME_PERIOD, proto, readset);
  }






  public List<HourlyReport> findAllByPeriodName(Date period, String name, Readset<HourlyReport> readset) throws DalException {
/* 38 */     HourlyReport proto = new HourlyReport();

/* 40 */     proto.setPeriod(period);
/* 41 */     proto.setName(name);

/* 43 */     return getQueryEngine().queryMultiple(HourlyReportEntity.FIND_ALL_BY_PERIOD_NAME, proto, readset);
  }






  public HourlyReport findByPK(int keyId, Readset<HourlyReport> readset) throws DalException {
/* 52 */     HourlyReport proto = new HourlyReport();

/* 54 */     proto.setKeyId(keyId);

/* 56 */     return (HourlyReport)getQueryEngine().querySingle(HourlyReportEntity.FIND_BY_PK, proto, readset);
  }








/* 66 */   protected Class<?>[] getEntityClasses() { return new Class[] { HourlyReportEntity.class }; }



/* 70 */   public int insert(HourlyReport proto) throws DalException { return getQueryEngine().insertSingle(HourlyReportEntity.INSERT, proto); }





/* 76 */   public int updateByPK(HourlyReport proto, Updateset<HourlyReport> updateset) throws DalException { return getQueryEngine().updateSingle(HourlyReportEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/HourlyReportDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */